Skip to content

feat: make cluster domain configurable in KEDA deployer#3682

Open
Itx-Psycho0 wants to merge 1 commit intoknative:mainfrom
Itx-Psycho0:fix/3403-configurable-cluster-domain
Open

feat: make cluster domain configurable in KEDA deployer#3682
Itx-Psycho0 wants to merge 1 commit intoknative:mainfrom
Itx-Psycho0:fix/3403-configurable-cluster-domain

Conversation

@Itx-Psycho0
Copy link
Copy Markdown
Contributor

Problem

The external name service to the keda-add-ons-http-interceptor-proxy was hardcoded with the cluster domain set to cluster.local. This works for most cases, but fails in clusters with custom domain configurations.

Solution

Made the cluster domain configurable by adding a ClusterDomain field to the DeploySpec struct. The KEDA deployer now uses this field to build the interceptor proxy service URL, with cluster.local as the default fallback for backward compatibility.

Changes

  • Added ClusterDomain field to DeploySpec in pkg/functions/function.go
  • Updated interceptorBridgeService() in pkg/keda/deployer.go to use the configurable cluster domain
  • Added unit tests in pkg/keda/deployer_test.go to verify the functionality

Usage

Users can now configure the cluster domain in their func.yaml:

deploy:
  deployer: keda
  clusterDomain: "custom.domain"  # Optional, defaults to "cluster.local"

Testing
✅ All unit tests pass
✅ Linting checks pass
✅ Backward compatible (defaults to "cluster.local")
Fixes #3403

This commit addresses issue knative#3403 by making the cluster domain
configurable for KEDA deployments.

Changes:
- Added ClusterDomain field to DeploySpec in pkg/functions/function.go
- Updated KEDA deployer to use configurable cluster domain with
  'cluster.local' as the default fallback
- Added unit tests to verify the cluster domain configuration works
  correctly with default, custom, and explicit values

The external name service to keda-add-ons-http-interceptor-proxy now
uses the configured cluster domain instead of being hardcoded to
'cluster.local'. This allows the function to work in clusters with
custom domain configurations.

Fixes knative#3403
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 8, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Itx-Psycho0
Once this PR has been reviewed and has the lgtm label, please assign dprotaso for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 8, 2026 17:31
@knative-prow knative-prow Bot added size/L 🤖 PR changes 100-499 lines, ignoring generated files. needs-ok-to-test 🤖 Needs an org member to approve testing labels May 8, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 8, 2026

Hi @Itx-Psycho0. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Itx-Psycho0
Copy link
Copy Markdown
Contributor Author

Hi maintainers,

I've implemented a fix for issue #3403 that makes the cluster domain configurable in the KEDA deployer.

Summary:

  • Added a ClusterDomain field to DeploySpec that allows users to configure the cluster domain
  • Updated the KEDA deployer to use this field when building the interceptor proxy service URL
  • Defaults to "cluster.local" for backward compatibility
  • Added comprehensive unit tests

The implementation is backward compatible and follows the existing patterns in the codebase. All tests pass and linting is clean.

I'd appreciate your review when you have a chance.

@lkingland @creydr @matejvasek

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test 🤖 Needs an org member to approve testing size/L 🤖 PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clusterdomain is not configurable in Keda deployer

1 participant